package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Teacher  implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer teacherId;
    @ApiModelProperty(value = "教师姓名")
    private String teacherName;
    @ApiModelProperty(value = "教师性别")
    private String tsex;
    @ApiModelProperty(value = "电话")
    private String telephone;
    @ApiModelProperty(value = "密码")
    private String password;
    @TableLogic
    @ApiModelProperty(hidden = true)
    private Integer deleted;

    public Teacher(Integer teacherId){
        this.teacherId = teacherId;
    }
}
